From: Robert Lipe Date: Thu, 20 Dec 2018 04:20:24 +0000 (-0600) Subject: Sign extension fix in EasyGPS X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~8^2~26^2~7 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=9816cac126a6fef0700fcd431ccdd6867ba61023;p=gpsbabel.git Sign extension fix in EasyGPS --- diff --git a/easygps.cc b/easygps.cc index e6d9a6c99..38925f9bf 100644 --- a/easygps.cc +++ b/easygps.cc @@ -76,13 +76,13 @@ wr_deinit() static void data_read() { - char p; + int p; char ibuf[10]; do { Waypoint* wpt_tmp = new Waypoint; UrlLink link; - for (unsigned char tag = gbfgetc(file_in); tag != 0xff; tag = gbfgetc(file_in)) { + for (int tag = gbfgetc(file_in); tag != 0xff; tag = gbfgetc(file_in)) { switch (tag) { case 1: wpt_tmp->shortname = gbfgetpstr(file_in);